package pattern.observer;

import java.util.Observable;


public class WeatherCenter extends Observable
{
	private String message;
	public void sendMessage()
	{
		setChanged();
		notifyObservers(message);
	}
	public void setMessage(String message)
	{
		this.message = message;
		sendMessage();
	}
	public String getMessage()
	{
		return this.message;
	}
}